package com.nit.lab;

import com.nit.lab.controller.basic.GoodsController;
import com.nit.lab.dto.basic.GoodsDTO;
import com.nit.lab.dto.system.TokenDTO;
import com.nit.lab.dto.utils.TableReqDTO;
import com.nit.lab.dto.utils.TableRspDTO;
import com.nit.lab.service.basic.GoodsService;
import com.nit.lab.utils.JWTUtil;
import org.junit.jupiter.api.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import javax.annotation.Resource;
import java.util.List;

@SpringBootTest
public class GoodTest1 {
//    @Resource
//    private GoodsService goodsService;
//
//    @Test
//    public void list4Table(@RequestHeader(name = "Access-Token") String token, @RequestBody TableReqDTO tableReqDTO) {
//        TableRspDTO tableRspDTO = new TableRspDTO();
//        try {
//            tableRspDTO = goodsService.list4Table(tableReqDTO);
//            List<GoodsDTO> records = tableRspDTO.getResult().getData();
//            System.out.println(records);
//        } catch (Exception e) {
//            System.out.println(e.toString());
//        }
//    }

}
